<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Vue Basics</title>
    <link
      href="https://fonts.googleapis.com/css2?family=Jost:wght@400;700&display=swap"
      rel="stylesheet"
    />
    <link rel="stylesheet" href="styles.css" />
    <script
      src="https://cdn.jsdelivr.net/npm/vue@3.3.13/dist/vue.global.min.js"
      defer
    ></script>
    <script src="app.js" defer></script>
  </head>

  <body>
    <header>
      <h1>Vue Dynamic Styling</h1>
    </header>
    <section id="styling">
      <div class="demo" :class="boxAClasses" @click="boxSelected('A')"></div>
      <div
        :class="['demo',{active:boxBSelected}]"
        @click="boxSelected('B')"
      ></div>
      <div
        class="demo"
        :class="{active:boxCSelected}"
        @click="boxSelected('C')"
      ></div>
      <!-- <div
        v-if="false"
        class="demo"
        :style="{borderColor: boxASelected ? 'red' : '#ccc'}"
        @click="boxToggleSelected('A')"
      ></div>

      <div
        class="demo"
        :class="boxAClasses"
        @click="boxToggleSelected('A')"
      ></div>
      <div
        :class="['demo', {active: boxBSelected}]"
        @click="boxToggleSelected('B')"
      ></div>
      <div
        class="demo"
        :class="{active: boxCSelected}"
        @click="boxToggleSelected('C')"
      ></div> -->
    </section>
  </body>
</html>
